Platform Explorer / Nuxeo Platform 2021.25

Contribution org.nuxeo.ecm.comment.pageprovider--providers

This contribution is part of XML component org.nuxeo.ecm.comment.pageprovider inside nuxeo-platform-comment-2021.25.8.jar /OSGI-INF/comment-pageprovider-contrib.xml

Extension Point

Extension point providers of component PageProviderService.

Registration Order

10
The registration order represents the order in which this contribution was registered on its target extention point. This will impact the override/merge behaviour when it is implemented on the target service, and is useful for proper customization of existing contributions.
You can influence this order by adding "require" tags in the containing component declaration, to make sure it is resolved after another component (see "Resolution Order" on components).

Contributed Items

  • <coreQueryPageProvider name="GET_COMMENT_AS_EXTERNAL_ENTITY">
          <pattern>
            SELECT * FROM Comment WHERE ecm:path STARTSWITH '/' AND externalEntity:entityId = ?
          </pattern>
          <pageSize>0</pageSize>
          <maxPageSize>0</maxPageSize>
        </coreQueryPageProvider>
  • <coreQueryPageProvider name="GET_COMMENTS_FOR_DOCUMENT">
          <pattern>
            SELECT * FROM Comment WHERE comment:parentId = ?
          </pattern>
          <pageSize>0</pageSize>
          <maxPageSize>0</maxPageSize>
        </coreQueryPageProvider>
  • <coreQueryPageProvider name="GET_ANNOTATION_AS_EXTERNAL_ENTITY">
          <pattern>
            SELECT * FROM Annotation WHERE ecm:path STARTSWITH '/' AND externalEntity:entityId = ?
          </pattern>
          <pageSize>0</pageSize>
          <maxPageSize>0</maxPageSize>
        </coreQueryPageProvider>
  • <coreQueryPageProvider name="GET_ANNOTATIONS_FOR_DOCUMENT">
          <pattern>
            SELECT * FROM Annotation WHERE comment:parentId = ? AND annotation:xpath = ?
          </pattern>
          <pageSize>0</pageSize>
          <maxPageSize>0</maxPageSize>
        </coreQueryPageProvider>
  • <coreQueryPageProvider name="GET_EXTERNAL_COMMENT_BY_COMMENT_ANCESTOR">
          <pattern>
            SELECT * FROM Comment WHERE comment:ancestorIds = ? AND externalEntity:entityId = ?
          </pattern>
          <pageSize>0</pageSize>
          <maxPageSize>0</maxPageSize>
        </coreQueryPageProvider>
  • <coreQueryPageProvider name="GET_COMMENTS_FOR_DOCUMENT_BY_ECM_PARENT">
          <pattern>
            SELECT * FROM Comment WHERE ecm:parentId = ?
          </pattern>
          <pageSize>0</pageSize>
          <maxPageSize>0</maxPageSize>
        </coreQueryPageProvider>
  • <coreQueryPageProvider name="GET_EXTERNAL_COMMENT_BY_ECM_ANCESTOR">
          <pattern>
            SELECT * FROM Comment WHERE ecm:ancestorId = ? AND externalEntity:entityId = ?
          </pattern>
          <pageSize>0</pageSize>
          <maxPageSize>0</maxPageSize>
        </coreQueryPageProvider>
  • <coreQueryPageProvider name="GET_COMMENTS_FOR_DOCUMENTS_BY_COMMENT_ANCESTOR">
          <pattern>
            SELECT * FROM Comment WHERE comment:ancestorIds IN ?
          </pattern>
          <pageSize>0</pageSize>
          <maxPageSize>0</maxPageSize>
        </coreQueryPageProvider>
  • <coreQueryPageProvider name="GET_ANNOTATIONS_FOR_DOCUMENT_BY_ECM_PARENT">
          <pattern>
            SELECT * FROM Annotation WHERE ecm:parentId = ? AND annotation:xpath = ?
          </pattern>
          <pageSize>0</pageSize>
          <maxPageSize>0</maxPageSize>
        </coreQueryPageProvider>

XML Source

<extension point="providers" target="org.nuxeo.ecm.platform.query.api.PageProviderService">

    <!-- deprecated since 11.1 -->
    <!-- TreeCommentManager & PropertyCommentManager use it to provide backward compatibility on external entity API -->
    <coreQueryPageProvider name="GET_COMMENT_AS_EXTERNAL_ENTITY">
      <pattern>
        SELECT * FROM Comment WHERE ecm:path STARTSWITH '/' AND externalEntity:entityId = ?
      </pattern>
      <pageSize>0</pageSize>
      <maxPageSize>0</maxPageSize>
    </coreQueryPageProvider>

    <!-- deprecated since 11.1 / PropertyCommentManager uses it -->
    <coreQueryPageProvider name="GET_COMMENTS_FOR_DOCUMENT">
      <pattern>
        SELECT * FROM Comment WHERE comment:parentId = ?
      </pattern>
      <pageSize>0</pageSize>
      <maxPageSize>0</maxPageSize>
    </coreQueryPageProvider>

    <!-- deprecated since 11.1 / unused -->
    <coreQueryPageProvider name="GET_ANNOTATION_AS_EXTERNAL_ENTITY">
      <pattern>
        SELECT * FROM Annotation WHERE ecm:path STARTSWITH '/' AND externalEntity:entityId = ?
      </pattern>
      <pageSize>0</pageSize>
      <maxPageSize>0</maxPageSize>
    </coreQueryPageProvider>

    <!-- deprecated since 11.1 / AnnotationService uses it when PropertyCommentManager is in place-->
    <coreQueryPageProvider name="GET_ANNOTATIONS_FOR_DOCUMENT">
      <pattern>
        SELECT * FROM Annotation WHERE comment:parentId = ? AND annotation:xpath = ?
      </pattern>
      <pageSize>0</pageSize>
      <maxPageSize>0</maxPageSize>
    </coreQueryPageProvider>

    <!-- deprecated since 11.1 / PropertyCommentManager uses it -->
    <coreQueryPageProvider name="GET_EXTERNAL_COMMENT_BY_COMMENT_ANCESTOR">
      <pattern>
        SELECT * FROM Comment WHERE comment:ancestorIds = ? AND externalEntity:entityId = ?
      </pattern>
      <pageSize>0</pageSize>
      <maxPageSize>0</maxPageSize>
    </coreQueryPageProvider>

    <!-- used by TreeCommentManager -->
    <coreQueryPageProvider name="GET_COMMENTS_FOR_DOCUMENT_BY_ECM_PARENT">
      <pattern>
        SELECT * FROM Comment WHERE ecm:parentId = ?
      </pattern>
      <pageSize>0</pageSize>
      <maxPageSize>0</maxPageSize>
    </coreQueryPageProvider>

    <!-- used by TreeCommentManager -->
    <coreQueryPageProvider name="GET_EXTERNAL_COMMENT_BY_ECM_ANCESTOR">
      <pattern>
        SELECT * FROM Comment WHERE ecm:ancestorId = ? AND externalEntity:entityId = ?
      </pattern>
      <pageSize>0</pageSize>
      <maxPageSize>0</maxPageSize>
    </coreQueryPageProvider>

    <!-- used by PropertyCommentManager & TreeCommentManager -->
    <!-- currently not possible to do a ecm:ancestorId IN (..) -->
    <coreQueryPageProvider name="GET_COMMENTS_FOR_DOCUMENTS_BY_COMMENT_ANCESTOR">
      <pattern>
        SELECT * FROM Comment WHERE comment:ancestorIds IN ?
      </pattern>
      <pageSize>0</pageSize>
      <maxPageSize>0</maxPageSize>
    </coreQueryPageProvider>

    <!-- AnnotationService uses it when TreeCommentManager is in place-->
    <coreQueryPageProvider name="GET_ANNOTATIONS_FOR_DOCUMENT_BY_ECM_PARENT">
      <pattern>
        SELECT * FROM Annotation WHERE ecm:parentId = ? AND annotation:xpath = ?
      </pattern>
      <pageSize>0</pageSize>
      <maxPageSize>0</maxPageSize>
    </coreQueryPageProvider>

  </extension>